/*
 * FileName: DataBaseServiceImpl.java
 * 北京神州新桥科技有限公司
 * Copyright 2015-2016 (C) Sino-Bridge Software CO., LTD. All Rights Reserved.
 */
package com.sino.meta.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sino.base.baseservice.impl.AbstractService;
import com.sino.meta.database.mapper.DatabaseEntityMapper;
import com.sino.meta.model.DatabaseEntity;
import com.sino.meta.service.DatabaseService;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author maxia
 * @version 1.0
 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2016年11月1日 下午4:06:48          maxia        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
@Service("databaseService")
public class DataBaseServiceImpl extends AbstractService<DatabaseEntity, Long> implements DatabaseService {
    @Autowired
    private DatabaseEntityMapper DBEntityMapper;

    // 这句必须要加上。不然会报空指针异常，因为在实际调用的时候不是BaseMapper调用，而是具体的mapper，这里为userMapper
    @Autowired
    public void setBaseMapper() {
        super.setBaseMapper(DBEntityMapper);
    }
}
